﻿function reverseStr(name)
{
    var name = "My city is WH";
    var resultStr = name.split('').reverse().join('');
}

function replaceStr(str, oldStr, newStr) {
    var resultStr = str.replace(oldStr, newStr);
}